package org.springframework.web.modules;

import org.springframework.web.servlet.HandlerAdapter;
import org.springframework.web.servlet.HandlerExecutionChain;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author float.lu
 */
public class ModuleHandler {
    private String moduleName;
    private ModuleConfiguration configuration;
    private HandlerExecutionChain executionChain;
    private HandlerAdapter handlerAdapter;
    private HttpServletRequest request;
    private HttpServletResponse response;

    public ModuleConfiguration getConfiguration() {
        return configuration;
    }

    public void setConfiguration(ModuleConfiguration configuration) {
        this.configuration = configuration;
    }

    public String getModuleName() {
        return moduleName;
    }

    public void setModuleName(String moduleName) {
        this.moduleName = moduleName;
    }

    public HandlerExecutionChain getExecutionChain() {
        return executionChain;
    }

    public void setExecutionChain(HandlerExecutionChain executionChain) {
        this.executionChain = executionChain;
    }

    public HandlerAdapter getHandlerAdapter() {
        return handlerAdapter;
    }

    public void setHandlerAdapter(HandlerAdapter handlerAdapter) {
        this.handlerAdapter = handlerAdapter;
    }

    public HttpServletRequest getRequest() {
        return request;
    }

    public void setRequest(HttpServletRequest request) {
        this.request = request;
    }

    public HttpServletResponse getResponse() {
        return response;
    }

    public void setResponse(HttpServletResponse response) {
        this.response = response;
    }
}
